package demo2;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author 李明洋
 * @date 2025/3/28 10:17
 * @version: 1.0
 */
public class Demo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context
                = new AnnotationConfigApplicationContext("demo2");
        DBUtil dbu = context.getBean(DBUtil.class);
        System.out.println(dbu);

        Student st = context.getBean(Student.class);
        System.out.println(st);

    }
}
